package com.lmk.t01;

import java.io.*;

public class VedioText {
    public static void main(String[] args) {
        String oldPath="d:/11/02.mp4";
        String newPath="d:/11/03.mp4";
        File  old=new File(oldPath);
        File  target=new File(newPath);
        try(
                InputStream is=new FileInputStream(old);
                OutputStream os=new FileOutputStream(target)
                ){

                byte[] butter=new byte[500];
                int len=-1;
                while ((len=is.read(butter))!=-1){
                    os.write(butter,0,len);
                }
                os.flush();
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
